package com.hyt.it.ogt.ykcj.feign.cloudfile;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;
import com.hyt.model.cloudefile.apiparams.FileRecodeDetailParam;
import com.hyt.model.cloudefile.apiparams.FileRecodeDetailStatisticsParam;
import com.hyt.model.cloudefile.entity.CloudeFileProjectRecordDetail;
import com.hyt.model.cloudefile.responsedto.FileRecodeDetailStatisticsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * description 远程调用获取导入记录详细信息类
 *
 * @author yaojian
 * @createTime 2021/12/06
 */
@FeignClient(value = "it-ogt-webcommon", fallback = RecordDetailClientHystrix.class, configuration = OAuth2FeignRequestConfig.class)
public interface RecordDetailClient {

    /**
     * 根据考试id获取考试信息
     *
     * @param fileRecodeParam
     * @return
     */
    @RequestMapping(value = "/api/fileRecodeDetailPage", method = RequestMethod.POST)
    ApiResponse<Page<CloudeFileProjectRecordDetail>> queryfileRecode(@RequestBody FileRecodeDetailParam fileRecodeParam) ;


    /**
     * 查询文件处理详情统计数据
     * @param fileRecodeDetailStatisticsParam
     * @return
     */
    @RequestMapping(value = "/api/fileRecodeDetailStatistics")
    ApiResponse<FileRecodeDetailStatisticsDto> queryfileRecodeStatistics(@RequestBody FileRecodeDetailStatisticsParam fileRecodeDetailStatisticsParam);



    /**
     * 查询文件处理详情统计数据
     * @param fileRecodeDetailStatisticsParam
     * @return
     */
    @RequestMapping(value = "/api/fileRecodeDetailStatisticsV2")
    ApiResponse<FileRecodeDetailStatisticsDto> fileRecodeDetailStatisticsV2(@RequestBody FileRecodeDetailStatisticsParam fileRecodeDetailStatisticsParam);

}
